home *** CD-ROM | disk | FTP | other *** search
- Path: d203.nb.interaccess.com!gcraig
- From: gcraig@interaccess.com (George Craig)
- Newsgroups: comp.lang.c
- Subject: Obtaining file lists in C?
- Date: Sun, 14 Apr 1996 22:29:35 LOCAL
- Organization: Ace Computer Systems
- Message-ID: <gcraig.1.001653A2@interaccess.com>
- NNTP-Posting-Host: d203.nb.interaccess.com
- Keywords: files, lists, listings, directory
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #4]
-
- Could someone please tell me just one of the many ways I could implement an
- efficient file listing technique in standard ANSI or k&R c?
-
- I.e, I want to obtain a listing of the files in the current directory - could
- I use a pointer to an array of strings? Whereas the strings are actually the
- names of the files in the current directory.
-
- If I could do that... (which I am almost positive I can) how would I obtain
- the file listing into the variables. I want to avoid using system() and I
- surely don't want to go low-level and read the file system's table(s) - any
- and all help will surely be appreciated -- Thank you
-
- George Craig
-
-